package com.ruoyi.safe.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 合作单位对象 common_cooperator
 *
 * @author ruoyi
 * @date 2023-11-08
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class CommonCooperator extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 序号
     */
    private Long id;

    /**
     * 企业名称
     */
    @Excel(name = "企业名称")
    private String enterpriseName;

    /**
     * 企业简称
     */
    @Excel(name = "企业简称")
    private String enterpriseAbbreviation;

    /**
     * 统一社会信用代码
     */
    @Excel(name = "统一社会信用代码")
    private String creditCode;

    /**
     * 企业类型(取字典)
     */
    @Excel(name = "企业类型", dictType = "common_enterprise_type")
    private String enterpriseType;

    /**
     * 资质等级(取字典)
     */
    @Excel(name = "资质等级", dictType = "common_qualifications_level")
    private String qualificationLevel;

    /**
     * 不良记录
     */
    @Excel(name = "不良记录")
    private Integer badnessRecord;

    /**
     * 所属组织
     */
    @Excel(name = "所属组织")
    private String department;

    /**
     * 来源
     */
    @Excel(name = "来源")
    private String source;

    /**
     * 是否政府、军队、境外单位(Y 是  N否)
     */
    @Excel(name = "是否政府、军队、境外单位", dictType = "sys_yes_no")
    private String governmentAgency;

    /**
     * 企业编码
     */
    @Excel(name = "企业编码")
    private String enterpriseCode;

    /**
     * 企业性质(取字典)
     */
    @Excel(name = "企业性质", dictType = "common_enterprise_character")
    private String enterpriseProperty;

    /**
     * 企业邮箱
     */
    @Excel(name = "企业邮箱")
    private String enterpriseMail;

    /**
     * 电话
     */
    @Excel(name = "电话")
    private String phone;

    /**
     * 成立日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "成立日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date setUpDate;

    /**
     * 注册资金(万元)
     */
    @Excel(name = "注册资金(万元)")
    private BigDecimal registerMoney;

    /**
     * 评价状态
     */
    @Excel(name = "评价状态", dictType = "common_evaluate")
    private String evaluateStatus;

    /**
     * 地址
     */
    @Excel(name = "地址")
    private String address;

    /**
     * 上级单位
     */
    @Excel(name = "上级单位")
    private Long deptId;

    /**
     * 身份类型
     */
    @Excel(name = "身份类型", dictType = "common_id_type")
    private String idType;

    /**
     * 经营范围
     */
    @Excel(name = "经营范围")
    private String businessScope;

    /**
     * 分类状态（0正常 1停用）
     */
    @Excel(name = "分类状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /**
     * 删除标志（0代表存在 2代表删除）
     */
    private String delFlag;

    private String gapsCooperatorId;

}
